package org.rayson.share.transport;

import java.io.EOFException;
import java.io.IOException;

import org.rayson.api.server.ServerResponse;

public interface Connection {

	public void addResponse(ServerResponse response);

	public void asyncRead() throws IOException, EOFException;

	public void asyncWrite() throws IOException;

	public void close() throws IOException;

	abstract NioChannel getChannel();

	public long getId();
}